package test;

import java.util.Date;
import java.util.UUID;

/**
 * @Author: 刘浩然
 * @Date: 2020/10/22 20:11
 */
public class test {
    public static void main(String[] args) {
        Date date=new Date();
        String random = UUID.nameUUIDFromBytes((date.toString()).getBytes()).toString().substring(5,10);
        System.out.println(random);
        System.out.println(date);
    }
}
